const initialState = {}
export const user = (state = initialState, action) => {
  switch (action.type) {
    // 设置个人信息
    case 'user/getInfo':
      return action.payload
    case 'uesr/clearInfo':
      return initialState

    default:
      return state
  }
}
